package com.fm.parser.json;

import com.fm.base.json.JsonArray;
import com.fm.base.json.JsonObject;
import com.fm.base.json.JsonReader;
import com.fm.base.json.JsonReaderFactory;

import java.util.function.Supplier;

public class BasicJsonReaderFactory implements JsonReaderFactory {
	@Override
	public JsonReader<JsonObject, JsonArray> createJsonReader(String jsonString, Supplier<JsonObject> supplier1, Supplier<JsonArray> supplier2) {
		return new BasicJsonReader<>(jsonString, supplier1, supplier2);
	}
}
